﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Shared/MainPage.Master" AutoEventWireup="true" CodeBehind="AccessoryInfoList.aspx.cs" Inherits="Runda.CMS.Portal.SyncManage.AccessoryInfoList" %>


<%@ Register Assembly="AspNetPager" Namespace="Wuqi.Webdiyer" TagPrefix="webdiyer" %>
<%@ Register Assembly="RadAjax.Net2" Namespace="Telerik.WebControls" TagPrefix="rad" %>
<%@ Register Assembly="RadGrid.Net2" Namespace="Telerik.WebControls" TagPrefix="rad" %>
<%@ Register Assembly="RadWindow.Net2" Namespace="Telerik.WebControls" TagPrefix="rad" %>
<%@ Register assembly="RadCalendar.Net2" namespace="Telerik.WebControls" tagprefix="rad" %>

<asp:Content ID="Content1" ContentPlaceHolderID="cphHead" runat="server">
    <link href="../Content/global.css" rel="stylesheet" type="text/css" /> 
    <link href="../Content/Find/find.css" rel="stylesheet" type="text/css" />
    <link href="../Content/Menu/Menu.css" rel="stylesheet" type="text/css" /> 
    <script src="../Content/global.js" type="text/javascript"></script>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="cphBody" runat="server">
<div class="Container">
      <table id="appFind" class="find" cellspacing="0" cellpadding="0" border="0"> 
            <tbody>
                <tr height="23">
                    <td class="wizHead" colspan="7">
                        <table style="table-layout: fixed; font-size: 9pt" cellspacing="0" cellpadding="0" width="100%" height="100%">
                            <colgroup>
                                <col>
                                <col width="60">
                                <col width="60"> 
                                <tr><td style="color:#ffffff"><b>快速查询</b></td><td class="icMenu mnuRight" noWrap><span id="__appFind_switch_standard" class="menu" title="普通查询" onclick='appFind.showQueryPart("__appFind_tbQuery1")' tabIndex="0"></span></td><td class="icMenu mnuRight" noWrap></td></tr>
                        </table>
                    </td>
                </tr>
                <tr id="__appFind_trQuery"  >
                    <td class="wizBox1" colspan="7">
                    <table style="TABLE-LAYOUT: fixed; FONT-SIZE: 9pt" height="100%" cellSpacing="0" cellPadding="0" width="100%">
                    <tr>
                    <td style="width:10%" align = "right">配件类型</td>
                    <td style="width:10%">
                        <asp:DropDownList ID="ddlAccessoryType" runat="server">
                        <asp:ListItem Text="--不限--" Value="0" ></asp:ListItem>
                        <asp:ListItem Text="配件" Value="1" ></asp:ListItem>
                        <asp:ListItem Text="易耗件" Value="2" ></asp:ListItem>
                        </asp:DropDownList>
                    </td> 
                    <td style="width:5%">厂家</td>
                    <td style="width:10%">
                        <asp:DropDownList ID="ddlVendor" runat="server">
                        </asp:DropDownList>
                    </td> 
                    <td style="width:15%"  align = "right">配件编号（公司）</td>
                    <td style="width:20%">
                        <asp:TextBox ID="txtCompanyInstrumentCode" runat="server"></asp:TextBox>
                    </td> 
                    <td  style="width:30%" ><asp:Button ID="btnSearchBasic" Width="80px" runat="server" Text="查找" CssClass="button" onclick="btnSearch_Click"/></td><td>    &nbsp;</td></tr>
                     </table>
                   
                    </td>
                </tr>
            </tbody>
    </table>      
</div>

<div class="Container">
    <table class="mnubar" cellspacing="0" cellpadding="0">
            <tbody>
                <tr>
                    <td style="padding-left: 5px" nowrap>
                        <b>列表</b>
                    </td>
                    <td style="padding-left: 5px">
                        <img src="../Content/Grid/separator.gif">
                    </td>
                    <td class="icMenu" nowrap> 
                            <table id="appGridMenu_mainmnu" class="mnuList" cellspacing="0" cellpadding="3">
                                <colgroup>
                                    <col class="mnuLeft">
                                    <col class="mnuItm">
                                    <col align="right" width="20">
                                    <tbody>
                                        <tr tabindex="0" action="getids()">
                                            <td>
                                            </td>
                                            <td colspan="2" nowrap> 
                                            </td>
                                        </tr>
                                    </tbody>
                            </table>
                        </span>
                    </td>
                    <td class="icMenu mnuRight" nowrap>
                    <span class="menu"  onclick="openStdWin('AccessoryInfo.aspx','AccessoryAdd');" runat="server" id="spanAddDuty">
                            <img class="mnuBtn" src="../Content/Grid/New_16_blue.gif"><span class="mnuBtn">新增配件、易耗件</span></span>
                    </td>
                </tr>
            </tbody>
        </table>       
        <div style="border-bottom: #c2c2bf 1px solid; border-top: #969693 1px solid">
        </div>
            <asp:Panel runat="server" ID="panel1">
                <rad:RadGrid runat="server" ID="gridAccessoryList" Skin="OCM"  AutoGenerateColumns="False" AllowSorting="false" GridLines="None" EnableAJAX="True" EnableAJAXLoadingTemplate="True"
                    OnItemDataBound="gridAccessoryList_ItemDataBound" OnItemCommand="gridAccessoryList_ItemCommand" AllowAutomaticUpdates="false">
                        <AJAXLoadingTemplate>
                            <img src="../Images/loadding_orange.gif" /> 加载中...
                        </AJAXLoadingTemplate>
                        <ClientSettings EnableClientKeyValues="true">
                            <Selecting AllowRowSelect="true" />
                            <Resizing AllowColumnResize="true" />
                        </ClientSettings>
                        <MasterTableView DataKeyNames="AccessoryID">  
                        <Columns>
                            <rad:GridTemplateColumn HeaderText="类型">
                                 <ItemTemplate>
                                    <asp:Label runat="server" ID="AccessoryID" Text='<%#Eval("AccessoryID") %>' Visible="false"></asp:Label> 
                                    <asp:Label runat="server" ID="AccessoryType" Text='<%#Eval("AccessoryType") %>' Visible="false"></asp:Label>
                                    <asp:Label runat="server" ID="AccessoryTypeName"></asp:Label>
                                 </ItemTemplate>
                             </rad:GridTemplateColumn>
                             
                             <rad:GridTemplateColumn HeaderText="配件编号（公司）">
                                 <ItemTemplate>
                                    <asp:HyperLink runat="server" ID="HyperLink1" ToolTip='<%#Eval("CompanyInstrumentCode")%>'  Text='<%# Eval("CompanyInstrumentCode")%>' Target="_blank" NavigateUrl='<%# "../SyncManage/AccessoryInfo.aspx?AccessoryID="+Eval("AccessoryID") %>' ></asp:HyperLink>
                                 </ItemTemplate>
                             </rad:GridTemplateColumn>
                            <rad:GridBoundColumn DataField="FactoryInstrumentCode" HeaderText="配件编号（厂家）"></rad:GridBoundColumn>
                            <rad:GridBoundColumn DataField="AccessoryName" HeaderText="配件名称"></rad:GridBoundColumn>
                             <rad:GridBoundColumn DataField="AccessoryStandard" HeaderText="规格"></rad:GridBoundColumn>
                              <rad:GridBoundColumn DataField="Unit" HeaderText="单位"></rad:GridBoundColumn>
                            <rad:GridBoundColumn DataField="Vendor" HeaderText="厂家"></rad:GridBoundColumn>
                            <rad:GridBoundColumn DataField="PresellPrice" HeaderText="销售价"></rad:GridBoundColumn>
                            <rad:GridBoundColumn DataField="LowStockQuantity" HeaderText="最低库存"></rad:GridBoundColumn>
                            <rad:GridTemplateColumn HeaderText="相关仪器">
                                <ItemTemplate>
                                        <asp:Label ID="relateInstrument" runat="server"></asp:Label>
                                </ItemTemplate>
                            </rad:GridTemplateColumn>
                             <rad:GridTemplateColumn HeaderText="操作">
                             <ItemTemplate> 
                                 <asp:LinkButton ID="lnkbtnDelete" runat="server" CommandName="delete">删除</asp:LinkButton>
                             </ItemTemplate>
                             </rad:GridTemplateColumn> 
                        </Columns>
                    </MasterTableView>
                </rad:RadGrid>
      
                   <webdiyer:AspNetPager ID="AspNetPager1" runat="server" CssClass="paginator" CurrentPageButtonClass="cpb"
            PageSize="15" CustomInfoHTML="第%CurrentPageIndex%页，共%PageCount%页，每页%PageSize%条"
            FirstPageText="首页" LastPageText="尾页" NextPageText="下一页" PrevPageText="上一页" ShowCustomInfoSection="Left"
            Width="100%" LayoutType="Table" SubmitButtonClass="but" SubmitButtonText="转到"
            OnPageChanged="AspNetPager1_PageChanged">
        </webdiyer:AspNetPager>
             </asp:Panel>
</div>
    <input type="hidden" id="returnValue" runat="server"  />
    <asp:Button ID="btnRefersh" runat="server" Text="Button" style="display:none" onclick="btnRefersh_Click" />
</asp:Content>
